package com.foreverwin.mes.meapi.mapper;

import com.foreverwin.mes.meapi.dto.ShiftResult;
import com.foreverwin.mes.meapi.model.UserShift;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-01-13
 */
@Repository
public interface UserShiftMapper extends BaseMapper<UserShift> {

    List<ShiftResult> selectUserShift(@Param("site") String site);

    /**
     * 查询班次信息
     * @param site
     * @param userShift
     * @return
     */
    ShiftResult selectUserShiftDefinitionByShift(@Param("site") String site, @Param("userShift") String userShift);
}